﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="header.aspx.cs" Inherits="Com.Ompchina.Web.admin.main.header" %>
<%@ Import Namespace="Util.Configuration" %>
<%@ Import Namespace="Model.AuthModel" %>
<%@ Import Namespace="System.Collections.Generic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../clients/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="../clients/js/ompchina-common.js"></script>
<link type="text/css" rel="stylesheet" href="../clients/css/common.css" />
<script type="text/javascript">
    $(function() {
        AuthModel.initNav();
    })
</script>
<title>Admin Header</title>
</head>
<body>
<div id="header">
	<div id="logo"><%= WebConfiguration.SiteName%> CMS</div>
    <div id="nav">
    	<ul>
    	    <%
                IList<StaffRolesInfo> list = this._GetRolesAuthModuleType();
                if (list != null && list.Count > 0) 
                {
                    foreach (StaffRolesInfo info in list) 
                    {
                    %>
                    <li><a href='menu.aspx?id=<%= info.Roles.RolesAuth.Auth.Module.ModuleType.ModuleTypeID %>' target="menu"><%= info.Roles.RolesAuth.Auth.Module.ModuleType.ModuleTypeName %></a></li>
                    <%
                    }   
                }   
    	     %>
            <span class="cleafix"></span>
        </ul>
    </div>
    <div id="welcome">欢迎您,<span><%=LoginStaff.Username%></span></div>
    <div id="widget">
    	<ul>
            <li><a href="../WebHandlers/user/logout.ashx" target="_top">退出</a></li> 
            <li><a href="changepass.aspx" target="content">修改密码</a></li>           
            <li><a href="javascript:void(0)" onclick="top.content.location=top.content.location;">刷新内容</a></li>
        </ul>
        <div class="cleafix"></div>
    </div>
</div>
</body>
</html>
